﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Com.Library.DB.Board;
using System.Web.Script.Serialization;
using System.Text;

namespace Com.Web.coffinegurunaru.manager.board
{
    public partial class articlelist : System.Web.UI.UserControl
    {
        public List<ArticleEntity> List { get; set; }
        protected void Page_Load(object sender, EventArgs e)
        {

        }

		protected string GetAdditionalData(string strJsonData)
		{
			if (string.IsNullOrEmpty(strJsonData.Trim()))
			{
				return string.Empty;
			}
			Dictionary<string, object> addtionalData = (new JavaScriptSerializer()).Deserialize<Dictionary<string, object>>(strJsonData);

			StringBuilder sb = new StringBuilder();

			sb.Append("<br/>추가데이터<br/>");
			foreach (KeyValuePair<string, object> item in addtionalData)
			{
				sb.AppendFormat("{0} : {1}<br/>", item.Key, item.Value); 
			}

			return sb.ToString();
		}
    }
}